home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / editor / words3.lha / Words / WarpSPELL / source / DMakefile < prev    next >
Makefile  |  1995-06-20  |  1KB  |  55 lines

  1. # scanner library makefile (DICE)
  2.  
  3. OD     = o/
  4. EXE    = golded:syntax/warpSPELL.parser
  5. CFLAGS = -mRR -ms -mi -s -// -I$(OD) -l0 -Ldlib: -lc -lamiga20 -proto -Idinclude:amiga30
  6.  
  7. PROTOS = $(OD)lib-protos.h
  8.  
  9. # linker libraries (used during GoldED development only)
  10.  
  11. LIB    = golded:syntax/developer/dlib/scanlib.lib
  12. RLIB   = golded:syntax/developer/dlib/scanlibr.lib
  13. SRLIB  = golded:syntax/developer/dlib/scanlibsr.lib
  14.  
  15. SRCS   = init.c lib.c funcs.c tag.a
  16. OBJS   = $(SRCS:"*.a":"$(OD)*.o") $(SRCS:"*.c":"$(OD)*.o")
  17.  
  18. all: $(OD) $(PROTOS) $(EXE) $(LIB) $(RLIB) $(SRLIB)
  19.  
  20. # note: flush program flushes memory (i.e. any previous version of
  21. # this library that is in memory is flushed), new utility that does
  22. # not exist on older DICE distributions.
  23.  
  24. $(EXE) : $(OBJS)
  25.     dcc $(CFLAGS) %(right) -o %(left) -v
  26.     -flush
  27.  
  28. $(OBJS) : $(SRCS)
  29.     dcc $(CFLAGS) %(right) -o %(left) -c
  30.  
  31. $(PROTOS) : $(SRCS)
  32.     makeproto -o %(left) %(right)
  33.  
  34. $(LIB) : lib.fd
  35.     fdtolib golded:syntax/developer/fd/lib.fd -o t:lib.o -I$(OD)
  36.     copy t:lib.o %(left)
  37.     delete t:lib.o
  38.  
  39. $(RLIB) : lib.fd
  40.     fdtolib golded:syntax/developer/fd/lib.fd -mr -h defs.h -o t:lib.o -I$(OD)
  41.     copy t:lib.o %(left)
  42.     delete t:lib.o
  43.  
  44. $(SRLIB) : lib.fd
  45.     fdtolib golded:syntax/developer/fd/lib.fd -mr -md -h defs.h -o t:lib.o -I$(OD)
  46.     copy t:lib.o %(left)
  47.     delete t:lib.o
  48.  
  49. clean:
  50.     -delete $(OBJS) $(PROTOS) QUIET
  51.     touch golded:syntax/developer/fd/lib.fd
  52.  
  53. $(OD) : $(OD)
  54.     makedir %(left:*/:*)
  55.